package org.itheima.service;

import org.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    User findByUserName(String username);


    void register(String username, String password);

    void update(User user);


    //更新头像
    void updateAvatar(String avatarUrl);

    void updatePwd(String newPwd);

    void updatePersonalIntroductionAndEmail(String newBio, String newEmail);

    void updateNickname(String nickname);


    List<Map<String,Object>> findAll();

    void updateStatus(int id);

    void updateStatus2(int id);

    List<Map<String,Object>> findAllOrdinary();
}
